package com.example.pwj.ffstudy.http;


import com.example.pwj.ffstudy.bean.gank.GankBean;
import com.example.pwj.ffstudy.bean.zdaily.ZDailyComments;
import com.example.pwj.ffstudy.bean.zdaily.ZDailyExtra;
import com.example.pwj.ffstudy.bean.zdaily.ZDailyNews;
import com.example.pwj.ffstudy.bean.zdaily.ZDailyStoryDetail;

import io.reactivex.Observable;
import retrofit2.http.GET;
import retrofit2.http.Path;

/**
 * Created by admin on 2017/3/20.
 */

public interface ApiService {

    //Gank相关api
    //    http://gank.io/api/data/Android/10/1
    @GET("data/Android/{count}/{page}")
    Observable<GankBean> getData(@Path("count") int count, @Path("page") int page);

    //知乎日报相关api
    @GET("news/before/{date}")
    Observable<ZDailyNews> getZDailyNews(@Path("date") String date);

    @GET("news/{id}")
    Observable<ZDailyStoryDetail> getZDailyStotyDetail(@Path("id") int id);

    @GET("story-extra/{id}")
    Observable<ZDailyExtra> getZDailyExtra(@Path("id") int id);

    @GET("story/{id}/long-comments")
    Observable<ZDailyComments> getZDailyLongComment(@Path("id") int id);

    //这个api只能取到20条
    @GET("story/{id}/short-comments")
    Observable<ZDailyComments> getZDailyShortComment(@Path("id") int id);
}
